<?php
/*
	插件初始化
*/
namespace jy_shoplibao;
defined('BY_JYA') or exit('error');
function init($plugin){
	//定义本场景的一些独立,为空表示共用电商客的
	$plugin->weishop_order_detail='';
	$plugin->weishop_order_list='';
	$plugin->syscolor=$plugin->plugin_setting('basic')['syscolor']?:'';
	$plugin->pluginname='jy_kabao';
	$plugin->plugins=array();
	$plugin->types=array('普通卡包','特殊卡包','线上卡包');
	$plugin->batchtypes=array('归属平台','归属门店','归属员工');
	$plugin->jiangtype=array('送商品','送优惠券','送余额红包','送虚拟币');
	$plugin->codestatus=array('待发卡','已领卡','已兑换');
	$plugin->orderstatus=array('待兑换','已部分兑换','已兑换待使用','已兑换待发货','已发货','已完成','待支付','已被赠送','已申请退费','退款成功');
	$plugin->songlog_status=array('待领取','已领取','已过期');
	$plugin->datatypes=array(
		'head'=>'头像',
		'nickname'=>'昵称',
		'qr'=>'二维码',
		'img'=>'图片',
		'title'=>'标题',
		'desc'=>'描述',
		'text'=>'自定义文字',
	);
	$plugin->datapushs=array(
		'head'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'head',
						'width' => '80',
						'height' => '80',
		),
		'qr'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'qr',
						'width' => '80',
						'height' => '80',
		),
		'nickname'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'nickname',
						'width' => '120',
						'height' => '26',
		),
		'img'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'img',
						'width' => '200',
						'height' => '200',
		),
		'title'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'title',
						'width' => '226',
						'height' => '50',
		),
		'thumb'=>array(
						'left' => '0',
						'top' => '0',
						'type' => 'thumb',
						'width' => '316',
						'height' => '316',
		),
		'text'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'text',
						'width' => '260',
						'height' => '26',
						'value' => '自定义文字',
		),
	);
	$plugin->goodsdatademo=array(
		array(
						'left' => '250',
						'top' => '80',
						'type' => 'qr',
						'width' => '60',
						'height' => '60',
		),
		array(
						'left' => '116',
						'top' => '125',
						'type' => 'text',
						'width' => '100',
						'height' => '25',
						'size' => '9',
						'value' => '扫码领取卡包',
						'color'=>'#ddd',
		),
		array(
						'left' => '10',
						'top' => '10',
						'type' => 'title',
						'width' => '300',
						'height' => '25',
						'size' => '14',
						'bold'=>1,
						'value' => '卡包标题',
						'color'=>'#f2f2f2',
		),
		array(
						'left' => '10',
						'top' => '30',
						'type' => 'desc',
						'width' => '300',
						'height' => '65',
						'size' => '12',
						'value' => '卡包的描述：值此元旦来临之际，为了感谢您在我们业务合作中给予的持续业务合作，特此送上节日礼品以表深深地谢意!',
						'color'=>'#f2f2f2',
		),
	);
}